const a = async function (
  _,
  { memory, transfer: { checkkeyList } },
  { dc: { http, store }, dayjs, $grid, xe: { searchTree, set } }
) {
  const year = dayjs(store.get("user", "date")).format("YYYY");
  const data = { ..._, year };
  const items = await http.form({ url: "/qyk/enterprise/listJczl", data });
  const checkRowList = searchTree(items, (item) =>
    checkkeyList.includes(item.guid)
  );
  $grid.setCheckboxRow(checkRowList, true);
  set(memory, "modal", checkRowList);
  return { items, total: items.length };
};

const a1 = async function (
  _,
  { memory, transfer: { checkkeyList } },
  { dc: { http, store }, dayjs, $grid, xe: { searchTree, set } }
) {
  const year = dayjs(store.get("user", "date")).format("YYYY");
  const data = { ..._, year };
  const items = await http.form({ url: "/nyk/enterprise/listJczl", data });
  const checkRowList = searchTree(items, (item) =>
    checkkeyList.includes(item.guid)
  );
  $grid.setCheckboxRow(checkRowList, true);
  set(memory, "modal", checkRowList);
  return { items, total: items.length };
};
